package com.tmz.cloudmall.cloudmallware.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tmz.cloudmall.cloudmallware.domain.PurchaseDetail;
import org.apache.ibatis.annotations.Mapper;

/**
 * 购货详情Mapper接口
 * 
 * @author tmz
 * @date 2025-08-16
 */
@Mapper
public interface PurchaseDetailMapper extends BaseMapper<PurchaseDetail>
{
    /**
     * 查询购货详情
     * 
     * @param id 购货详情主键
     * @return 购货详情
     */
    public PurchaseDetail selectPurchaseDetailById(Long id);

    /**
     * 查询购货详情列表
     * 
     * @param purchaseDetail 购货详情
     * @return 购货详情集合
     */
    public List<PurchaseDetail> selectPurchaseDetailList(PurchaseDetail purchaseDetail);

    /**
     * 新增购货详情
     * 
     * @param purchaseDetail 购货详情
     * @return 结果
     */
    public int insertPurchaseDetail(PurchaseDetail purchaseDetail);

    /**
     * 修改购货详情
     * 
     * @param purchaseDetail 购货详情
     * @return 结果
     */
    public int updatePurchaseDetail(PurchaseDetail purchaseDetail);

    /**
     * 删除购货详情
     * 
     * @param id 购货详情主键
     * @return 结果
     */
    public int deletePurchaseDetailById(Long id);

    /**
     * 批量删除购货详情
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deletePurchaseDetailByIds(Long[] ids);
}
